//
//  SCStoreSectionView.m
//  shangcheng
//
//  Created by 张艳江 on 2019/5/31.
//  Copyright © 2019 张艳江. All rights reserved.
//

#import "SCStoreSectionView.h"

@implementation SCStoreSectionView

+ (instancetype)addStoreSectionView{
    return [[NSBundle mainBundle] loadNibNamed:@"SCStoreSectionView" owner:nil options:nil].lastObject;
}
- (void)setModel:(SCModel *)model{
    _model = model;
    [self.storeImage sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",HTTP_URL,model.logo]] placeholderImage:[UIImage imageNamed:@""]];
    self.storeNameLab.text = model.name;
    self.onSaleNumLab.text = [NSString stringWithFormat:@"%d",model.count];
}

@end
